home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / UNIX / C / INDENT / MAKEFILE. < prev    next >
Text File  |  1989-09-11  |  2KB  |  62 lines

  1. #
  2. # Copyright (c) 1987 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    5.9 (Berkeley) 9/15/88
  18. #
  19. CFLAGS=    -O
  20. SRCS=    indent.c io.c lexi.c parse.c pr_comment.c args.c globs.c
  21. OBJS=    indent.o io.o lexi.o parse.o pr_comment.o args.o globs.o
  22. HEADERS= indent_globs.h version.h
  23. MAN=    indent.texinfo ChangeLog Projects
  24. TARFILES= ${SRCS} Makefile ${MAN} ${HEADERS} indent.gperf
  25. # -g is here rather than in CFLAGS since many versions of cc do not
  26. # allow -g with -O
  27. CC=gcc -g
  28.  
  29. all: indent
  30.  
  31. indent: ${OBJS}
  32.     ${CC} -o $@ ${CFLAGS} ${OBJS}
  33.  
  34. indent.tar.Z: ${TARFILES}
  35.     rm -f indent.tar.Z
  36.     mkdir dist-indent
  37.     cd dist-indent ; for i in ${TARFILES} ; do ln -s ../$$i . ; done
  38. # Note: requires GNU tar
  39.     tar -c -h -z -f indent.tar.Z dist-indent
  40.     rm -rf dist-indent
  41.  
  42. ${OBJS}: indent_globs.h
  43. args.o: version.h
  44.  
  45. clean:
  46.     rm -f ${OBJS} core indent
  47.  
  48. cleandir: clean
  49.     rm -f ${MAN} tags .depend
  50.  
  51. depend: ${SRCS}
  52.     mkdep ${CFLAGS} ${SRCS}
  53.  
  54. lint: ${SRCS}
  55.     lint ${CFLAGS} ${SRCS}
  56.  
  57. tags: ${SRCS}
  58.     ctags ${SRCS} ${HEADERS}
  59.  
  60.  
  61.  
  62.